package com.youlai.boot.modules.content.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 文章视图对象
 *
 * @author lz0816
 * @since 2025-02-25 16:26
 */
@Getter
@Setter
@Schema( description = "文章视图对象")
public class LzArticleVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    @Schema(description = "标题")
    private String title;
    @Schema(description = "文章内容")
    private String content;
    @Schema(description = "文章摘要")
    private String summary;
    @Schema(description = "所属分类id")
    private Long categoryId;
    @Schema(description = "所属分类名称")
    private String categoryName;
    @Schema(description = "标签")
    private List<String> tags;
    @Schema(description = "缩略图")
    private String thumbnail;
    @Schema(description = "是否置顶（0否，1是）")
    private String isTop;
    @Schema(description = "状态（0已发布，1草稿）")
    private String status;
    @Schema(description = "访问量")
    private Long viewCount;
    @Schema(description = "是否允许评论 1是，0否")
    private String isComment;
    private Long createBy;
    private LocalDateTime createTime;
    private Long updateBy;
    private LocalDateTime updateTime;
    // 创建人
    private String createdName;
    // 更新人
    private String updatedName;
    @Schema(description = "删除标志（0代表未删除，1代表已删除）")
    private Integer isDeleted;
}
